<?php
class FilemanagerController extends Controller{
    public function actions() {
        return array(
            'connector' => array(
                'class' => 'ext.elFinder.ElFinderConnectorAction',
                'settings' => array(
                    'root' => UPLOAD_PATH,
                    'URL' => UPLOAD_URL,
                    'rootAlias' => 'Home',
                    'mimeDetect' => 'mime_content_type'
                )
            ),
            'compressor' => array(
                'class' => 'ext.tinymce.TinyMceCompressorAction',
                'settings' => array(
                   'compress' => true,
                        'disk_cache' => true,
                    )
                ),
            'spellchecker' => array(
                'class' => 'TinyMceSpellcheckerAction',
           ),
        );

    }

    public function actionIndex(){
        $this->render('index');
    }
}